﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CCWin;
using Newtonsoft.Json;

namespace weiqijiance.自检
{
    public partial class JDZS : CCSkinMain
    {

        public mainform m_mainform;
        public JDZS()
        {
            InitializeComponent();
        }

        private void skinBut_scwudbd_Click(object sender, EventArgs e)
        {
          //  objbass.getzhuansu();//41
            string zsjlx = "2";
            if (comboBox_zsjxl.Text.Contains("供油管路脉冲测量"))
            {
                 zsjlx = "1";
            }
            else if (comboBox_zsjxl.Text.Contains("OBD 式"))
            {
                zsjlx = "3";
            }
            else if (comboBox_zsjxl.Text.Contains("其他"))
            {
                zsjlx = "4";
            }
            var azj41 = new 联网通信协议.中科宇图.ZJ41()
            {
                zsjxs = zsjlx,
                sjzs = textBox_zssz.Text,
                clzs = textBox_zsbd.Text,
                jcjg = "1",
                jckssj = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
                jcjssj = DateTime.Now.AddSeconds(20).ToString("yyyy-MM-dd HH:mm:ss")
            };
            string svalue = JsonConvert.SerializeObject(azj41);
            m_mainform.objbass.uploadzhuansu(svalue);//41
        }
    }
}
